<!DOCTYPE html>
<html>
<%include html-head%>

<body>
	<div data-role="dialog" id="editTaskDlg">

		<div data-role="header" data-theme="a">
			<h1><%=title%></h1>
		</div>
		<% if(isNew) {%>
		<div role="main" class="ui-content">
			<div class="ui-field-contain">
					<label for="select-stype">Type:</label> 	
					<select name="select-stype" id="select-stype">
						    <%var ss = tts;var length=ss.length;%>
						    <%for(var ixx=0; ixx < length; ixx++) {%>
						      <option value="<%=ixx%>"><%=ss[ixx]%></option>
						    <%}%>
					</select>
			</div>
			<% }%>
			<div id = "taskFormContainer" >
			<% include taskFormWateringT%>
			</div>
			<a href="#" data-role="button" data-rel="back" data-theme="a">Back to task manager page</a>
		</div>
		<script type="text/javascript" src="owjs/wTaskEdit.js"></script>
	</div>
</body>
</html>